import { Message } from 'element-ui';

export const successMsg = (message, onClose = () => {}, duration = 1500) => {
  Message({
    type: 'success',
    message,
    duration,
    showClose: true,
    onClose
  })
}

export const errorMsg = (message, onClose = () => {}, duration = 2000) => {
  Message({
    type: 'error',
    message,
    duration,
    showClose: true,
    onClose
  })
}